package com.wisdomparking.service;

import java.util.List;
import java.util.Map;

import com.wisdomparking.bean.VehicleInfo;

public interface VehicleInfoService {
	/**
	 * 添加
	 * @param en
	 * @param sign
	 * @return boolean
	 */
	public boolean addVehicleInfo(VehicleInfo en, boolean sign);
	
	/**
	 * 修改
	 * @param en
	 * @param sign
	 * @return boolean
	 */
	public boolean updateVehicleInfo(VehicleInfo en, boolean sign);
	
	/**
	 * 删除
	 * @param id
	 * @return boolean
	 */
	public boolean deleteVehicleInfoById(Integer id);
	
	/**
	 * 查询
	 * @param id
	 * @return VehicleInfo
	 */
	public VehicleInfo getVehicleInfo(Integer id);
	
	/**
	 * 查询
	 * @param plateNumber
	 * @return VehicleInfo
	 */
	public VehicleInfo getVehicleInfoByPlateNumber(String plateNumber);
	
	
	/**
	 * 获取对象列表
	 * @param map
	 * @return
	 */
	public List<VehicleInfo> getVehicleInfoList(Map<String, Object> map);
	
	/**
	 * 获取记录总条数
	 * @param map
	 * @return long
	 */
	public long getCountByVehicleInfo(Map<String, Object> map);
}
